package com.qqt.csr.archive.request;

import com.qqt.csr.archive.enums.RequestSource;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: yang hao
 * @Date: 2024/11/28 14:16
 * @Description: 归档消息历史数据
 **/
@Data
@Schema(description = "归档消息历史数据")
public class ArchiveHistoryMessageRequest implements Serializable {

    @Schema(description = "会话id")
    private String conversationId;

    @Schema(description = "访客id")
    @NotBlank(message = "访客id不能为空")
    private String visitorId;

    @Schema(description = "渠道id")
    @NotBlank(message = "渠道id不能为空")
    private String channelId;

    @Schema(description = "接收方id")
    @NotBlank(message = "接收方id不能为空")
    private String userId;

    @Schema(description = "请求源, WEB：后台管理历史记录查询, H5：访客端，WORKBENCH：客服工作台历史记录查询")
    @NotNull(message = "请求源不能为空")
    private RequestSource source;

}
